package com.salt.admin.api.utils;


import com.salt.admin.api.feign.client.AreaClient;
import com.salt.admin.api.model.Area;
import com.salt.common.utils.SpringContextHolder;

/**
 * @Description
 * @Author salt
 * @Date 2020/8/12 14:54
 * @Version 1.0
 */
public class AreaClientUtils {

    private static AreaClient areaClient = SpringContextHolder.getBean(AreaClient.class);

    public static Area getByAreaName(String name){
        return areaClient.getByAreaName(name);
    }
}
